<?
/*-- Project Introduce --*/


/**
 * Jabber 服务器对象
 *
 * @author		alee
 * @access		public
 */
class JJ_JabberServer
{
	/**
	 * 构造函数
	 *
	 * @access	public
	 * @return	void
	 */
	public function JJ_JabberServer($sServerHost=self::DefaultJabberHost,$nServerPort=self::DefaultJabberPort)
	{
		$this->sServerHost = $sServerHost ;
		$this->nServerPort = $nServerPort ;
		
		$this->aConnect = new Jabber(false) ;
	}
	
	/**
	 * 取得服务器
	 *
	 * @access	public
	 * @return	string
	 */
	public function GetServerHost()
	{
		return $this->sServerHost ;
	}
	
	/**
	 * 取得服务器端口号
	 *
	 * @access	public
	 * @return	string
	 */
	public function GetServerPort()
	{
		return $this->nServerPort ;
	}
	
	/**
	 * 取得连接对象
	 *
	 * @access	public
	 * @return	Jabber
	 */
	public function GetConnect()
	{
		return $this->aConnect ;
	}
	
	
	const DefaultJabberHost = 'jabber.org' ;
	
	const DefaultJabberPort = 5222 ;
	
	/**
	 * Description
	 * 
	 * @access	private
	 * @var		string
	 */
	private $sServerHost = self::DefaultJabberHost ;
	
	/**
	 * Description
	 * 
	 * @access	private
	 * @var		int
	 */
	private $nServerPort = self::DefaultJabberPort ;
		
	/**
	 * Description
	 * 
	 * @access	private
	 * @var		Jabber
	 */
	private $aConnect ;
}

?>